<?=$this->load->view('include_header',null)?>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				<?php if(!empty($info->id)):?><li><a id="printInfo" class="folder_table">打印本页信息</a></li><?php endif;?>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
<!-- table begin -->
<form method="post" id="form"  enctype="multipart/form-data" action="<?=site_url('schengen/ca_family_update/'.$cateid)?>">

	<h3>加拿大家庭信息表 Canada IMM 5645 (09-2010) E</h3>
    <table width="100%">
    
    <tfoot>
        <tr>
            <td colspan="6" align="right">			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息" />
			<input id="button2" type="reset" value="重置" />			</td>
        </tr>
    </tfoot>

    <tbody>
		<tr class="odd">
            <td colspan="6">Type of application: 
			<input type="radio" name="application_type" value="1" <?= (@$info->application_type==1)?'checked':''?> />Visitor 
        	<input type="radio" name="application_type" value="2" <?= (@$info->application_type==2)?'checked':''?> />Worker
			<input type="radio" name="application_type" value="3" <?= (@$info->application_type==3)?'checked':''?> />Student
			<input type="radio" name="application_type" value="0" <?= (@$info->application_type==0)?'checked':''?> />Other			</td>
        </tr>
        <tr class="even">
            <td colspan="6">SECTION A</td>
        	</tr>
		<tr class="odd">
            <td align="center">Full name</td>
        	<td align="center">Relationship<br />
        		SEE NOTE 1</td>
        	<td align="center">Date of birth
        		<br />
        		Y M D
        		<hr />
        		Country
        		of birth</td>
        	<td align="center">Marital status</td>
			<td align="center">Present address<br />
				(If deceased give city and date)
					<hr />
					Present occupation</td>
			<td align="center">Will<br />
				accompany<br />
				you to Canada?<br />
				YES NO</td>
        </tr>
        <tr class="even">
            <td><input type="text" name="applicant_name" value="<?= @$info->applicant_name?>"  /></td>
        	<td align="center">APPLICANT</td>
        	<td><input type="text" name="applicant_birth_y" value="<?= @$info->applicant_birth_y?>" style="width:30px"  />
				<input type="text" name="applicant_birth_m" value="<?= @$info->applicant_birth_m?>" style="width:15px"  />
				<input type="text" name="applicant_birth_d" value="<?= @$info->applicant_birth_d?>" style="width:15px"  />
        		<hr />
        		<input type="text" name="applicant_birth_country" value="<?= @$info->applicant_birth_country?>"  /></td>
        	<td><input type="text" name="applicant_marital" value="<?= @$info->applicant_marital?>" /></td>
			<td><input type="text" name="applicant_address" value="<?= @$info->applicant_address?>" />
				<hr />
				<input type="text" name="applicant_occupation" value="<?= @$info->applicant_occupation?>" /></td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td><input type="text" name="spouse_name" value="<?= @$info->spouse_name?>" /></td>
        	<td align="center">SPOUSE OR<br />
        		COMMON-LAW<br />
        		PARTNER</td>
        	<td><input type="text" name="spouse_birth_y" value="<?= @$info->spouse_birth_y?>" style="width:30px" />
				<input type="text" name="spouse_birth_m" value="<?= @$info->spouse_birth_m?>" style="width:15px" />
				<input type="text" name="spouse_birth_d" value="<?= @$info->spouse_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="spouse_birth_country" value="<?= @$info->spouse_birth_country?>" /></td>
        	<td><input type="text" name="spouse_marital" value="<?= @$info->spouse_marital?>" /></td>
			<td><input type="text" name="spouse_address" value="<?= @$info->spouse_address?>" />
				<hr />
				<input type="text" name="spouse_occupation" value="<?= @$info->spouse_occupation?>" /></td>
			<td>
			<input type="radio" name="is_spouse_with" value="1" <?= (@$info->is_spouse_with==1)?'checked':''?> />Yes
			<input type="radio" name="is_spouse_with" value="0" <?= (@$info->is_spouse_with==0)?'checked':''?> />No			</td>
        </tr>
        <tr class="even">
            <td><input type="text" name="mother_name" value="<?= @$info->mother_name?>" /></td>
        	<td align="center">MOTHER</td>
        	<td><input type="text" name="mother_birth_y" value="<?= @$info->mother_birth_y?>" style="width:30px" />
				<input type="text" name="mother_birth_m" value="<?= @$info->mother_birth_m?>" style="width:15px" />
				<input type="text" name="mother_birth_d" value="<?= @$info->mother_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="mother_birth_country" value="<?= @$info->mother_birth_country?>" /></td>
        	<td><input type="text" name="mother_marital" value="<?= @$info->mother_marital?>" /></td>
			<td><input type="text" name="mother_address" value="<?= @$info->mother_address?>" />
				<hr />
				<input type="text" name="mother_occupation" value="<?= @$info->mother_occupation?>" /></td>
			<td>
			<input type="radio" name="is_mother_with" value="1" <?= (@$info->is_mother_with==1)?'checked':''?> />Yes
			<input type="radio" name="is_mother_with" value="0" <?= (@$info->is_mother_with==0)?'checked':''?> />No			</td>
        </tr>
		<tr class="odd">
           <td><input type="text" name="father_name" value="<?= @$info->father_name?>" /></td>
        	<td align="center">FATHER</td>
        	<td><input type="text" name="father_birth_y" value="<?= @$info->father_birth_y?>" style="width:30px" />
				<input type="text" name="father_birth_m" value="<?= @$info->father_birth_m?>" style="width:15px" />
				<input type="text" name="father_birth_d" value="<?= @$info->father_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="father_birth_country" value="<?= @$info->father_birth_country?>" /></td>
        	<td><input type="text" name="father_marital" value="<?= @$info->father_marital?>" /></td>
			<td><input type="text" name="father_address" value="<?= @$info->father_address?>" />
				<hr />
				<input type="text" name="father_occupation" value="<?= @$info->father_occupation?>" /></td>
			<td>
			<input type="radio" name="is_father_with" value="1" <?= (@$info->is_father_with==1)?'checked':''?> />Yes
			<input type="radio" name="is_father_with" value="0" <?= (@$info->is_father_with==0)?'checked':''?> />No			</td>
        </tr>
        <tr class="even">
            <td colspan="6">NOTE 1: If no spouse or common-law partner is listed in Section A, read and sign below.</td>
        	</tr>
		<tr class="odd">
            <td colspan="6">I certify that I do not have a spouse or a common-law partner. 
			Signature:<input type="text" name="a_sign" value="<?= @$info->a_sign?>" />
			Date[yyyy mm dd]:<input type="text" name="a_sign_y" value="<?= @$info->a_sign_y?>" style="width:30px" />
			<input type="text" name="a_sign_m" value="<?= @$info->a_sign_m?>" style="width:15px" />
			<input type="text" name="a_sign_d" value="<?= @$info->a_sign_d?>" style="width:15px" />			</td>
        	</tr>
        <tr class="even">
            <td colspan="6">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="6">SECTION B CHILDREN (Include ALL sons and daughters, including ALL adopted and step-children, regardless of age or place of residence)</td>
        	</tr>
        <tr class="even">
			<td align="center">Full name</td>
        	<td align="center">Relationship<br />
        		SEE NOTE 2 </td>
        	<td align="center">Date of birth <br />
        		Y M D
        		<hr />
        		Country
        		of birth</td>
        	<td align="center">Marital status</td>
        	<td align="center">Present address<br />
        		(If deceased give city and date)
        		<hr />
        		Present occupation</td>
        	<td align="center">Will<br />
        		accompany<br />
        		you to Canada?<br />
        		YES NO</td>
        	</tr>
		<tr class="odd">
			<td><input type="text" name="child1_name" value="<?= @$info->child1_name?>" /></td>
			<td><input type="text" name="child1_relate" value="<?= @$info->child1_relate?>" /></td>
			<td><input type="text" name="child1_birth_y" value="<?= @$info->child1_birth_y?>" style="width:30px" />
				<input type="text" name="child1_birth_m" value="<?= @$info->child1_birth_m?>" style="width:15px" />
				<input type="text" name="child1_birth_d" value="<?= @$info->child1_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child1_birth_country" value="<?= @$info->child1_birth_country?>" /></td>
			<td><input type="text" name="child1_marital" value="<?= @$info->child1_marital?>" /></td>
			<td><input type="text" name="child1_address" value="<?= @$info->child1_address?>" />
				<hr />
				<input type="text" name="child1_occupation" value="<?= @$info->child1_occupation?>" /></td>
			<td><input type="radio" name="is_child1_with" value="1" <?= (@$info->is_child1_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child1_with" value="0" <?= (@$info->is_child1_with==0)?'checked':''?> />No </td>
		</tr>
        <tr class="even">
			<td><input type="text" name="child2_name" value="<?= @$info->child2_name?>" /></td>
			<td><input type="text" name="child2_relate" value="<?= @$info->child2_relate?>" /></td>
			<td><input type="text" name="child2_birth_y" value="<?= @$info->child2_birth_y?>" style="width:30px" />
				<input type="text" name="child2_birth_m" value="<?= @$info->child2_birth_m?>" style="width:15px" />
				<input type="text" name="child2_birth_d" value="<?= @$info->child2_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child2_birth_country" value="<?= @$info->child2_birth_country?>" /></td>
			<td><input type="text" name="child2_marital" value="<?= @$info->child2_marital?>" /></td>
			<td><input type="text" name="child2_address" value="<?= @$info->child2_address?>" />
				<hr />
				<input type="text" name="child2_occupation" value="<?= @$info->child2_occupation?>" /></td>
			<td><input type="radio" name="is_child2_with" value="1" <?= (@$info->is_child2_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child2_with" value="0" <?= (@$info->is_child2_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
			<td><input type="text" name="child3_name" value="<?= @$info->child3_name?>" /></td>
			<td><input type="text" name="child3_relate" value="<?= @$info->child3_relate?>" /></td>
			<td><input type="text" name="child3_birth_y" value="<?= @$info->child3_birth_y?>" style="width:30px" />
				<input type="text" name="child3_birth_m" value="<?= @$info->child3_birth_m?>" style="width:15px" />
				<input type="text" name="child3_birth_d" value="<?= @$info->child3_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child3_birth_country" value="<?= @$info->child3_birth_country?>" /></td>
			<td><input type="text" name="child3_marital" value="<?= @$info->child3_marital?>" /></td>
			<td><input type="text" name="child3_address" value="<?= @$info->child3_address?>" />
				<hr />
				<input type="text" name="child3_occupation" value="<?= @$info->child3_occupation?>" /></td>
			<td><input type="radio" name="is_child3_with" value="1" <?= (@$info->is_child3_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child3_with" value="0" <?= (@$info->is_child3_with==0)?'checked':''?> />No </td>
        </tr>
        <tr class="even">
			<td><input type="text" name="child4_name" value="<?= @$info->child4_name?>" /></td>
			<td><input type="text" name="child4_relate" value="<?= @$info->child4_relate?>" /></td>
			<td><input type="text" name="child4_birth_y" value="<?= @$info->child4_birth_y?>" style="width:30px" />
				<input type="text" name="child4_birth_m" value="<?= @$info->child4_birth_m?>" style="width:15px" />
				<input type="text" name="child4_birth_d" value="<?= @$info->child4_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child4_birth_country" value="<?= @$info->child4_birth_country?>" /></td>
			<td><input type="text" name="child4_marital" value="<?= @$info->child4_marital?>" /></td>
			<td><input type="text" name="child4_address" value="<?= @$info->child4_address?>" />
				<hr />
				<input type="text" name="child4_occupation" value="<?= @$info->child4_occupation?>" /></td>
			<td><input type="radio" name="is_child4_with" value="1" <?= (@$info->is_child4_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child4_with" value="0" <?= (@$info->is_child4_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
			<td><input type="text" name="child5_name" value="<?= @$info->child5_name?>" /></td>
			<td><input type="text" name="child5_relate" value="<?= @$info->child5_relate?>" /></td>
			<td><input type="text" name="child5_birth_y" value="<?= @$info->child5_birth_y?>" style="width:30px" />
				<input type="text" name="child5_birth_m" value="<?= @$info->child5_birth_m?>" style="width:15px" />
				<input type="text" name="child5_birth_d" value="<?= @$info->child5_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child5_birth_country" value="<?= @$info->child5_birth_country?>" /></td>
			<td><input type="text" name="child5_marital" value="<?= @$info->child5_marital?>" /></td>
			<td><input type="text" name="child5_address" value="<?= @$info->child5_address?>" />
				<hr />
				<input type="text" name="child5_occupation" value="<?= @$info->child5_occupation?>" /></td>
			<td><input type="radio" name="is_child5_with" value="1" <?= (@$info->is_child5_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child5_with" value="0" <?= (@$info->is_child5_with==0)?'checked':''?> />No </td>
        </tr>
        <tr class="even">
			<td><input type="text" name="child6_name" value="<?= @$info->child6_name?>" /></td>
			<td><input type="text" name="child6_relate" value="<?= @$info->child6_relate?>" /></td>
			<td><input type="text" name="child6_birth_y" value="<?= @$info->child6_birth_y?>" style="width:30px" />
				<input type="text" name="child6_birth_m" value="<?= @$info->child6_birth_m?>" style="width:15px" />
				<input type="text" name="child6_birth_d" value="<?= @$info->child6_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="child6_birth_country" value="<?= @$info->child6_birth_country?>" /></td>
			<td><input type="text" name="child6_marital" value="<?= @$info->child6_marital?>" /></td>
			<td><input type="text" name="child6_address" value="<?= @$info->child6_address?>" />
				<hr />
				<input type="text" name="child6_occupation" value="<?= @$info->child6_occupation?>" /></td>
			<td><input type="radio" name="is_child6_with" value="1" <?= (@$info->is_child6_with==1)?'checked':''?> />Yes
				<input type="radio" name="is_child6_with" value="0" <?= (@$info->is_child6_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
            <td colspan="6">NOTE 2: If no children are listed in Section B, read and sign below.</td>
        	</tr>
        <tr class="even">
            <td colspan="6">I certify that I do not have any children, either natural or adopted. 
			Signature:<input type="text" name="b_sign" value="<?= @$info->b_sign?>" />
			Date[yyyy mm dd]:<input type="text" name="b_sign_y" value="<?= @$info->b_sign_y?>" style="width:30px" />
			<input type="text" name="b_sign_m" value="<?= @$info->b_sign_m?>" style="width:15px" />
			<input type="text" name="b_sign_d" value="<?= @$info->b_sign_d?>" style="width:15px" />			</td>
        </tr>
		
		<tr class="odd">
            <td colspan="6">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="6">SECTION C BROTHERS AND SISTERS (Include ALL brothers and sisters, ALL half-brother and sister and stepbrother and sister.)</td>
        	</tr>
		<tr class="odd">
			<td align="center">Full name</td>
			<td align="center">Relationship</td>
			<td align="center">Date of birth <br />
				Y M D
				<hr />
				Country
				of birth</td>
			<td align="center">Marital status</td>
			<td align="center">Present address<br />
				(If deceased give city and date)
				<hr />
				Present occupation</td>
			<td align="center">Will<br />
				accompany<br />
				you to Canada?<br />
				YES NO</td>
		</tr>
        <tr class="even">
			<td><input type="text" name="sibling1_name" value="<?= @$info->sibling1_name?>" /></td>
        	<td><input type="text" name="sibling1_relate" value="<?= @$info->sibling1_relate?>" /></td>
        	<td><input type="text" name="sibling1_birth_y" value="<?= @$info->sibling1_birth_y?>" style="width:30px" />
				<input type="text" name="sibling1_birth_m" value="<?= @$info->sibling1_birth_m?>" style="width:15px" />
				<input type="text" name="sibling1_birth_d" value="<?= @$info->sibling1_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling1_birth_country" value="<?= @$info->sibling1_birth_country?>" /></td>
        	<td><input type="text" name="sibling1_marital" value="<?= @$info->sibling1_marital?>" /></td>
        	<td><input type="text" name="sibling1_address" value="<?= @$info->sibling1_address?>" />
				<hr />
				<input type="text" name="sibling1_occupation" value="<?= @$info->sibling1_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling1_with" value="1" <?= (@$info->is_sibling1_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling1_with" value="0" <?= (@$info->is_sibling1_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
			<td><input type="text" name="sibling2_name" value="<?= @$info->sibling2_name?>" /></td>
        	<td><input type="text" name="sibling2_relate" value="<?= @$info->sibling2_relate?>" /></td>
        	<td><input type="text" name="sibling2_birth_y" value="<?= @$info->sibling2_birth_y?>" style="width:30px" />
				<input type="text" name="sibling2_birth_m" value="<?= @$info->sibling2_birth_m?>" style="width:15px" />
				<input type="text" name="sibling2_birth_d" value="<?= @$info->sibling2_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling2_birth_country" value="<?= @$info->sibling2_birth_country?>" /></td>
        	<td><input type="text" name="sibling2_marital" value="<?= @$info->sibling2_marital?>" /></td>
        	<td><input type="text" name="sibling2_address" value="<?= @$info->sibling2_address?>" />
				<hr />
				<input type="text" name="sibling2_occupation" value="<?= @$info->sibling2_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling2_with" value="1" <?= (@$info->is_sibling2_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling2_with" value="0" <?= (@$info->is_sibling2_with==0)?'checked':''?> />No </td>
        </tr>
        <tr class="even">
			<td><input type="text" name="sibling3_name" value="<?= @$info->sibling3_name?>" /></td>
        	<td><input type="text" name="sibling3_relate" value="<?= @$info->sibling3_relate?>" /></td>
        	<td><input type="text" name="sibling3_birth_y" value="<?= @$info->sibling3_birth_y?>" style="width:30px" />
				<input type="text" name="sibling3_birth_m" value="<?= @$info->sibling3_birth_m?>" style="width:15px" />
				<input type="text" name="sibling3_birth_d" value="<?= @$info->sibling3_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling3_birth_country" value="<?= @$info->sibling3_birth_country?>" /></td>
        	<td><input type="text" name="sibling3_marital" value="<?= @$info->sibling3_marital?>" /></td>
        	<td><input type="text" name="sibling3_address" value="<?= @$info->sibling3_address?>" />
				<hr />
				<input type="text" name="sibling3_occupation" value="<?= @$info->sibling3_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling3_with" value="1" <?= (@$info->is_sibling3_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling3_with" value="0" <?= (@$info->is_sibling3_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
			<td><input type="text" name="sibling4_name" value="<?= @$info->sibling4_name?>" /></td>
        	<td><input type="text" name="sibling4_relate" value="<?= @$info->sibling4_relate?>" /></td>
        	<td><input type="text" name="sibling4_birth_y" value="<?= @$info->sibling4_birth_y?>" style="width:30px" />
				<input type="text" name="sibling4_birth_m" value="<?= @$info->sibling4_birth_m?>" style="width:15px" />
				<input type="text" name="sibling4_birth_d" value="<?= @$info->sibling4_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling4_birth_country" value="<?= @$info->sibling4_birth_country?>" /></td>
        	<td><input type="text" name="sibling4_marital" value="<?= @$info->sibling4_marital?>" /></td>
        	<td><input type="text" name="sibling4_address" value="<?= @$info->sibling4_address?>" />
				<hr />
				<input type="text" name="sibling4_occupation" value="<?= @$info->sibling4_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling4_with" value="1" <?= (@$info->is_sibling4_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling4_with" value="0" <?= (@$info->is_sibling4_with==0)?'checked':''?> />No </td>
        </tr>
        <tr class="even">
			<td><input type="text" name="sibling5_name" value="<?= @$info->sibling5_name?>" /></td>
        	<td><input type="text" name="sibling5_relate" value="<?= @$info->sibling5_relate?>" /></td>
        	<td><input type="text" name="sibling5_birth_y" value="<?= @$info->sibling5_birth_y?>" style="width:30px" />
				<input type="text" name="sibling5_birth_m" value="<?= @$info->sibling5_birth_m?>" style="width:15px" />
				<input type="text" name="sibling5_birth_d" value="<?= @$info->sibling5_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling5_birth_country" value="<?= @$info->sibling5_birth_country?>" /></td>
        	<td><input type="text" name="sibling5_marital" value="<?= @$info->sibling5_marital?>" /></td>
        	<td><input type="text" name="sibling5_address" value="<?= @$info->sibling5_address?>" />
				<hr />
				<input type="text" name="sibling5_occupation" value="<?= @$info->sibling5_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling5_with" value="1" <?= (@$info->is_sibling5_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling5_with" value="0" <?= (@$info->is_sibling5_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
			<td><input type="text" name="sibling6_name" value="<?= @$info->sibling6_name?>" /></td>
        	<td><input type="text" name="sibling6_relate" value="<?= @$info->sibling6_relate?>" /></td>
        	<td><input type="text" name="sibling6_birth_y" value="<?= @$info->sibling6_birth_y?>" style="width:30px" />
				<input type="text" name="sibling6_birth_m" value="<?= @$info->sibling6_birth_m?>" style="width:15px" />
				<input type="text" name="sibling6_birth_d" value="<?= @$info->sibling6_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling6_birth_country" value="<?= @$info->sibling6_birth_country?>"  /></td>
        	<td><input type="text" name="sibling6_marital" value="<?= @$info->sibling6_marital?>" /></td>
        	<td><input type="text" name="sibling6_address" value="<?= @$info->sibling6_address?>" />
				<hr />
				<input type="text" name="sibling6_occupation" value="<?= @$info->sibling6_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling6_with" value="1" <?= (@$info->is_sibling6_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling6_with" value="0" <?= (@$info->is_sibling6_with==0)?'checked':''?> />No </td>
        </tr>
        <tr class="even">
			<td><input type="text" name="sibling7_name" value="<?= @$info->sibling7_name?>" /></td>
        	<td><input type="text" name="sibling7_relate" value="<?= @$info->sibling7_relate?>" /></td>
        	<td><input type="text" name="sibling7_birth_y" value="<?= @$info->sibling7_birth_y?>" style="width:30px" />
				<input type="text" name="sibling7_birth_m" value="<?= @$info->sibling7_birth_m?>" style="width:15px" />
				<input type="text" name="sibling7_birth_d" value="<?= @$info->sibling7_birth_d?>" style="width:15px" />
				<hr />
				<input type="text" name="sibling7_birth_country" value="<?= @$info->sibling7_birth_country?>" /></td>
        	<td><input type="text" name="sibling7_marital" value="<?= @$info->sibling7_marital?>" /></td>
        	<td><input type="text" name="sibling7_address" value="<?= @$info->sibling7_address?>" />
				<hr />
				<input type="text" name="sibling7_occupation" value="<?= @$info->sibling7_occupation?>" /></td>
        	<td><input type="radio" name="is_sibling7_with" value="1" <?= (@$info->is_sibling7_with==1)?'checked':''?> />Yes
        		<input type="radio" name="is_sibling7_with" value="0" <?= (@$info->is_sibling7_with==0)?'checked':''?> />No </td>
        </tr>
		<tr class="odd">
            <td colspan="6">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="6">SECTION D CERTIFICATION</td>
        	</tr>
		<tr class="odd">
            <td colspan="6">I certify that the information contained on this document is complete, accurate and factual. I also realize that once this document has been completed and<br />
            	signed that it will form part of my Immigration Record and will be used to verify my family details on future applications.</td>
        	</tr>
        <tr class="even">
            <td colspan="6">Signature:<input type="text" name="d_sign" value="<?= @$info->d_sign?>" />
			Date[yyyy mm dd]:<input type="text" name="d_sign_y" value="<?= @$info->d_sign_y?>" style="width:30px" />
			<input type="text" name="d_sign_m" value="<?= @$info->d_sign_m?>" style="width:15px" />
			<input type="text" name="d_sign_d" value="<?= @$info->d_sign_d?>" style="width:15px" /></td>
        	</tr>
		<tr class="odd">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
    </tbody>
	</table>
<!-- table end -->
</form>

			</div>
		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

<script type="text/javascript">
$().ready(function() {
  $("#form").validate({
    rules: {
		application_type:"required",
		applicant_name:"required",
		applicant_birth_y:{
		 required:true,
		 rangelength:[4,4]
		},
		applicant_birth_m:{
		 required:true,
		 rangelength:[1,2]
		},
		applicant_birth_d:{
		 required:true,
		 rangelength:[1,2]
		},
		applicant_birth_country:"required",
		applicant_marital:"required",
		applicant_address:"required",
		applicant_occupation:"required"
	}
  });
  
	$.datepicker.setDefaults(
		{
		dateFormat: 'yy-mm-dd',
		changeMonth: true,
		changeYear: true,
		showOn: "both",
		buttonImage: "images/calendar.gif",
		buttonImageOnly: true
		}
	);
	
	
	$("#printInfo").click(function(o) {
		var prints = [
			{rel_id: <?=$cateid?>, rec_id: <?=$id?>}
		]  ;
		
		var jdata = JSON.stringify(prints);
		//alert(jdata);
		$.post("<?=site_url('proxy/does/'.str_replace('==','',base64_encode('http://'.$_SERVER['SERVER_NAME'].':9090/javaprduct/servlet/test')))?>",{clients:jdata},function(msg){alert(msg)});
	});
	
	$("#printInfo").ajaxError(function(event,request, settings){
		//$(this).append("<li>出错页面:" + settings.url + "</li>");
		alert("无法访问"+ settings.url );
	}); 
 
});
</script>

<?=$this->load->view('include_footer',null)?>